[Top] [Prev] [Next] [Bottom]
[Contents]
SaGetOldSessionData
Returns old session data so that any malloc'd data can be cleaned up.
#include "SaRnHtml.h"
void* SaGetOldSessionData SUTPROTO(());
Arguments
None.
Pointer to the old session data or NULL when all old data has been accessed.
Returns old session data so that any malloc'd data can be cleaned up. Call repeatedly in a loop until all old data has been cleaned (when the function returns NULL). This should be called in the main of the application. An alternative is to register a cleanup function for session data.
void* data;
while(1)
{
data = SaGetOldSessionData(ctx);
if(data == NULL)
{
break;
}
else
{
free(data);
}
}
- Note: Do not store any data obtained with SaMalloc or stored using SaAddToFree in session data.
See Also
[Top] [Prev] [Next] [Bottom]
[Contents]
info@bluestone.com
Copyright © 1997, Bluestone. All rights
reserved.